home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / MySql / sql-bench / Comments / postgres.benchmark < prev    next >
Encoding:
Text File  |  2001-01-01  |  2.3 KB  |  76 lines

  1. # This file describes how to run MySQL benchmarks with Postgres
  2.  
  3. # The test was run on a Intel Xeon 2x 550 Mzh machine with 1G memory,
  4. # 9G hard disk.  The OS is Suse 6.4, with Linux 2.2.14 compiled with SMP
  5. # support
  6. # Both the perl client and the database server is run
  7. # on the same machine. No other cpu intensive process was used during
  8. # the benchmark.
  9.  
  10. #
  11. #
  12. # First, install postgresql-7.0.2.tar.gz
  13. #
  14.  
  15. #
  16. # Start by adding the following lines to your ~/.bash_profile or
  17. # corresponding file. If you are using csh, use ´setenv´.
  18. #
  19.  
  20. export POSTGRES_INCLUDE=/usr/local/pgsql/include
  21. export POSTGRES_LIB=/usr/local/pgsql/lib
  22.  
  23. PATH=$PATH:/usr/local/pgsql/bin
  24. MANPATH=$MANPATH:/usr/local/pgsql/man
  25.  
  26. #
  27. # Add the following line to /etc/ld.so.conf:
  28. #
  29.  
  30. /usr/local/pgsql/lib
  31. and run ldconfig.
  32.  
  33. #
  34. # untar the postgres source distribution and cd to src/
  35. # run the following commands:
  36. #
  37.  
  38. ./configure
  39. gmake
  40. gmake install
  41.  
  42. mkdir /usr/local/pgsql/data
  43. chown postgres /usr/local/pgsql/data
  44. su - postgres
  45. /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
  46. su postgres -c "/usr/local/pgsql/bin/postmaster -o -F -D /usr/local/pgsql/data" &
  47. su postgres -c "/usr/local/pgsql/bin/createdb test"
  48.  
  49. #
  50. # Second, install packages DBD-Pg-0.95.tar.gz and DBI-1.14.tar.gz,
  51. # available from http://www.perl.com/CPAN/
  52. #
  53.  
  54. #
  55. # Now we run the test that can be found in the sql-bench directory in the
  56. # MySQL 3.23 source distribution.
  57. #
  58. # We did run two tests:
  59. # The standard test
  60.  
  61. run-all-tests --comment="Intel Xeon, 2x550 Mhz, 1G, pg started with -o -F" --user=postgres --server=pg --cmp=mysql
  62.  
  63. # and a test where we do a vacuum() after each update.
  64. # (The time for vacuum() is counted in the book-keeping() column)
  65.  
  66. run-all-tests --comment="Intel Xeon, 2x550 Mhz, 1G, pg started with -o -F" --user=postgres --server=pg --cmp=mysql --fast
  67.  
  68. # If you want to store the results in a output/RUN-xxx file, you should
  69. # repeate the benchmark with the extra option --log --use-old-result
  70. # This will create a the RUN file based of the previous results
  71. #
  72.  
  73. run-all-tests --comment="Intel Xeon, 2x550 Mhz, 1G, pg started with -o -F" --user=postgres --server=pg --cmp=mysql --log --use-old-result
  74. run-all-tests --comment="Intel Xeon, 2x550 Mhz, 1G, pg started with -o -F" --user=postgres --server=pg --cmp=mysql --fast --log --use-old-result
  75.